package com.example.fishscavengerhunt;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;

public class FishInfo extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_fish_info);
		
		ImageView catFish = (ImageView) findViewById(R.id.catfish2);
		catFish.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	Intent newIntent = new Intent(FishInfo.this, CatFish.class);
            	FishInfo.this.startActivity(newIntent);
            }
        });
		ImageView archerFish = (ImageView) findViewById(R.id.archerfish2);
		archerFish.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	Intent newIntent = new Intent(FishInfo.this, ArcherFish.class);
            	FishInfo.this.startActivity(newIntent);
            }
        });
		((ImageButton) findViewById(R.id.back))
		.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
		((ImageButton) findViewById(R.id.home))
		.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent newIntent = new Intent(FishInfo.this, Main.class);
            	FishInfo.this.startActivity(newIntent);
            	finish();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.fish_info, menu);
		return true;
	}

}
